package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.Dictionary;
import com.zhijian.medical.entity.vo.request.DictionarySearchVo;
import com.zhijian.medical.entity.vo.response.DictionaryVo;

import java.util.List;

public interface DictionaryMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Dictionary record);

    int insertSelective(Dictionary record);

    Dictionary selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Dictionary record);

    int updateByPrimaryKey(Dictionary record);

    int count(DictionarySearchVo dictionarySearchVo);

    List<DictionaryVo> selectList(DictionarySearchVo dictionarySearchVo);

    /**
     * 根据类型查询
     *
     * @param type
     * @return
     */
    DictionaryVo selectVoByType(String type);
}